﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DQYT.HTDZ.Model;
using System.Data;

namespace DQYT.HTDZ.IDAL
{
    public interface ITB_CLLTFDAL
    {
        #region  Method

        /// <summary>
        /// 获取最大ID
        /// </summary>
        /// <returns>最大ID</returns>
        DataSet getMaxID();

        /// <summary>
        /// 增加一条数据
        /// </summary>
        bool AddBySql(TB_CLLTFInfo model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        bool UpdateBySql(TB_CLLTFInfo model);


        /// <summary>
        /// 删除一条数据
        /// </summary>
        bool DeleteBySql(int ID);

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        TB_CLLTFInfo GetModelBySql(int ID);

        /// <summary>
        /// 获得数据列表
        /// </summary>
        DataSet GetList(string strWhere);

        /// <summary>
        /// 获取记录总数
        /// </summary>
        int GetRecordCount(string strWhere);
        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);



        #endregion  Method
    }
}
